<?php
class BulletinModel extends Model {
	// 自动填充设置
	protected $_auto = array ( 
		array('author','getAuthor',3,'callback'),
		array('time','time',3,'function'), // 对create_time字段在更新的时候写入当前时间戳

	);
	
	public function getAuthor(){
		return Cookie::get('acc_name');
	}

}
?>